package com.ccp.dev.workflow.dataKey.impl;

import com.ccp.dev.core.util.AppUtil;
import com.ccp.dev.workflow.service.IdentityService;
import com.ccp.dev.workflow.dataKey.KeyGenerator;

public class IdentityGenerator implements KeyGenerator {
    private String alias = "";
    @Override
    public Object nextId() throws Exception {
        IdentityService identityService=(IdentityService) AppUtil.getBean(IdentityService.class);
        return identityService.nextId(alias);
    }

    @Override
    public void setAlias(String alias) {
        this.alias = alias;
    }
}
